const Router = require('koa-router')
const router = new Router()

// 登录
router.get('/api/frontend/auth/login', async (ctx, next) => {
    const login = {
        "status": "success",
        "code": 200,
        "message": "登录成功",
        "data": {
            "token": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvdGVzdC5jcm0uY29tXC9hcGlcL2Zyb250ZW5kXC9hdXRoXC9sb2dpbiIsImlhdCI6MTYyNjYxOTc0MSwiZXhwIjoxNjMxODAzNzQxLCJuYmYiOjE2MjY2MTk3NDEsImp0aSI6Im41RjBlcVZmMFRXMUtyeHMiLCJzdWIiOjUsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.T79lkjl2TUHF3J5XkiXMHQtY5Ja95RgsAyQJLpsN0w8"
        }
    }
    ctx.body = JSON.stringify(login)
})

module.exports = router